package org.wuliu.pojo;

import java.sql.Timestamp;

public class Hezhong {
    private Integer id;
    private String tiaoma;
    private Integer yewuId;
    private Integer zhongliang;
    private Integer bcCount;
    private Timestamp caozuoDate;
    private Integer caozuoUser;

    private Yeweu yeweu;

    public Yeweu getYeweu() {
        return yeweu;
    }

    public void setYeweu(Yeweu yeweu) {
        this.yeweu = yeweu;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTiaoma() {
        return tiaoma;
    }

    public void setTiaoma(String tiaoma) {
        this.tiaoma = tiaoma;
    }

    public Integer getYewuId() {
        return yewuId;
    }

    public void setYewuId(Integer yewuId) {
        this.yewuId = yewuId;
    }

    public Integer getZhongliang() {
        return zhongliang;
    }

    public void setZhongliang(Integer zhongliang) {
        this.zhongliang = zhongliang;
    }

    public Integer getBcCount() {
        return bcCount;
    }

    public void setBcCount(Integer bcCount) {
        this.bcCount = bcCount;
    }

    public Timestamp getCaozuoDate() {
        return caozuoDate;
    }

    public void setCaozuoDate(Timestamp caozuoDate) {
        this.caozuoDate = caozuoDate;
    }

    public Integer getCaozuoUser() {
        return caozuoUser;
    }

    public void setCaozuoUser(Integer caozuoUser) {
        this.caozuoUser = caozuoUser;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Hezhong hezhong = (Hezhong) o;

        if (id != null ? !id.equals(hezhong.id) : hezhong.id != null) return false;
        if (tiaoma != null ? !tiaoma.equals(hezhong.tiaoma) : hezhong.tiaoma != null) return false;
        if (yewuId != null ? !yewuId.equals(hezhong.yewuId) : hezhong.yewuId != null) return false;
        if (zhongliang != null ? !zhongliang.equals(hezhong.zhongliang) : hezhong.zhongliang != null) return false;
        if (bcCount != null ? !bcCount.equals(hezhong.bcCount) : hezhong.bcCount != null) return false;
        if (caozuoDate != null ? !caozuoDate.equals(hezhong.caozuoDate) : hezhong.caozuoDate != null) return false;
        if (caozuoUser != null ? !caozuoUser.equals(hezhong.caozuoUser) : hezhong.caozuoUser != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (tiaoma != null ? tiaoma.hashCode() : 0);
        result = 31 * result + (yewuId != null ? yewuId.hashCode() : 0);
        result = 31 * result + (zhongliang != null ? zhongliang.hashCode() : 0);
        result = 31 * result + (bcCount != null ? bcCount.hashCode() : 0);
        result = 31 * result + (caozuoDate != null ? caozuoDate.hashCode() : 0);
        result = 31 * result + (caozuoUser != null ? caozuoUser.hashCode() : 0);
        return result;
    }
}
